package com.library.mapper;


import com.library.bean.Lend;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;

public interface LendMapper {

    public int returnBookOne(@Param("book_id") final long book_id,@Param("reader_id") long reader_id);

    public int returnBookTwo(@Param("book_id")final long book_id) ;

    public int lendBookOne(@Param("book_id")final long book_id, @Param("reader_id")final long reader_id) ;

    public int lendBookTwo(@Param("book_id")final long book_id) ;
    public ArrayList<Lend> lendList() ;

    public ArrayList<Lend> myLendList(@Param("reader_id")final long reader_id);

    public int deleteLend(final long ser_num);
}
